/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package by.scsbsu.commands;

/**
 *
 * @author slavchoo
 */
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import by.scsbsu.resources.managers.PageLinksManager;

public class NoCommand implements Command {

    @Override
    public String execute(HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        /*в случае прямого обращения к контроллеру переадресация на страницу ввода логина*/
        String page = PageLinksManager.getProperty(PageLinksManager.LOGIN_PAGE_PATH);
        return page;
    }
}
